class Vector:
    def __init__(self,x,y):
        self.x=x
        self.y=y
    def __add__(self, other):
        if type(other)==Vector:
            x=self.x+other.x
            y=self.y+other.y
            return Vector(x,y)
        else:
            x=self.x+other
            y=self.y+other
            return Vector(x,y)
    def __str__(self):
        return  f"(x={self.x},y={self.y})"

v1=Vector(1,2)+Vector(3,4)
print(v1)
v2=Vector(3,4)+10
print(v2)